<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/vue-2.4.0.js"></script>
    <link rel="stylesheet" href="lib/animate.css">
    <!-- 简历样式自定义表控制transition控制列表 -->
    <style>
       
    </style>
</head>
<body>
    
    <div id="app">
        <input type="button" value="toggle" @click='flag=!flag'>
        <!-- <transition enter-active-class="animated bounceIn" leave-active-class="animated bounceOut">
            <h1 v-if="flag">这是一个h1</h1>        
        </transition> -->
        <!-- 使用：duration指定入场出场时长 -->
        <!-- <transition enter-active-class="bounceIn" leave-active-class="bounceOut" :duration="200">
            <h1 v-if="flag" class="animated">这是一个h1</h1>        
        </transition> -->
        <!-- 使用：duration{}指定入场出场时长 -->

        <transition enter-active-class="bounceIn" leave-active-class="bounceOut" :duration="{ enter: 20000, leave: 40000 }">
            <h1 v-if="flag" class="animated">这是一个h1</h1>        
        </transition>
<hr>
        <input type="button" value="toggle2" @click='flag2=!flag2'>
        <transition name="my">
            <h2 v-if="flag2">这是一个h2</h2>        
        </transition>
    </div>
    <script>
        var vm = new Vue({
            el:'#app',
            data:{
                flag:false,
                flag2:false,

            },
            methods: {
                
            },
        })
    </script>
</body>
</html>